package com.wind.plugin.openAction.entity;

import com.fasterxml.jackson.annotation.JsonRawValue;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.wind.plugin.openAction.utils.CDataSerializer;

// 定义 ActionConfig 类
@JacksonXmlRootElement(localName = "actionConfig")
public class ActionConfig {
    @JacksonXmlProperty(isAttribute = true)
    private String type;

    @JacksonXmlProperty(localName = "content")
    @JsonSerialize(using = CDataSerializer.class)
//    @JsonRawValue
    private String content;

    // Getters and Setters

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}